package com.zhuzi.guicollect.bean;

import lombok.Getter;
import lombok.Setter;

/**
 * @author MI
 * @ClassName Favorite.java
 * @createTime 2021年11月02日 17:59:00
 */
@Setter
@Getter
public class Favorite {
    private String url;
    private String name;


    public void setUrl(String url) {
        this.url = url.split("\\?")[0];
    }

    public Favorite() {
    }

    public Favorite(String url, String name) {
        this.url = url.split("\\?")[0];
        this.name = name;
    }
}
